/*
 *************************************************************************
 *西瑞克斯研发管理系统
 *版 本: 1.0   
 *日 期：02/11/2012    
 *作 者： 王浩 QQ：873987060   
 *************************************************************************   
 */
package com.application.yfexamine.entity;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import com.manager.IBaseBean;
import com.manager.commons.DateUtil;

import java.util.Date;

/**
 * 
 * Description:YfExmaine实体<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060 <br />
 * 
 * History: <br />
 * 
 * 02/11/2012
 * 
 */
@Entity
@Table(name = "yf_exmaine")
public class YfExmaine implements IBaseBean {

	/** serialVersionUID */
	protected static final long serialVersionUID = -1L;

	public YfExmaine() {

	}

	@Id
	@Column(name = "id")
	private String id; // $field.label

	@Column(name = "process_id")
	private String processId; // $field.label

	@Column(name = "examine_flag")
	private String examineFlag; // $field.label

	@Column(name = "examine_option")
	private String examineOption; // $field.label

	@Column(name = "examine_person")
	private String examinePerson; // $field.label

	@Column(name = "examine_org")
	private String examineOrg; // $field.label

	@Column(name = "examine_date")
	private Date examineDate; // $field.label
    
	@Transient
	private String examineDateStr;
	/**
	 * ${field.getLabel()}
	 * 
	 * @return Returns the Id.
	 */
	public String getId() {
		return this.id;
	}

	/**
	 * @param id
	 *            Set the id.
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * ${field.getLabel()}
	 * 
	 * @return Returns the ProcessId.
	 */
	public String getProcessId() {
		return this.processId;
	}

	/**
	 * @param processId
	 *            Set the processId.
	 */
	public void setProcessId(String processId) {
		this.processId = processId;
	}

	/**
	 * ${field.getLabel()}
	 * 
	 * @return Returns the ExamineFlag.
	 */
	public String getExamineFlag() {
		return this.examineFlag;
	}

	/**
	 * @param examineFlag
	 *            Set the examineFlag.
	 */
	public void setExamineFlag(String examineFlag) {
		this.examineFlag = examineFlag;
	}

	/**
	 * ${field.getLabel()}
	 * 
	 * @return Returns the ExamineOption.
	 */
	public String getExamineOption() {
		return this.examineOption;
	}

	/**
	 * @param examineOption
	 *            Set the examineOption.
	 */
	public void setExamineOption(String examineOption) {
		this.examineOption = examineOption;
	}

	/**
	 * ${field.getLabel()}
	 * 
	 * @return Returns the ExaminePerson.
	 */
	public String getExaminePerson() {
		return this.examinePerson;
	}

	/**
	 * @param examinePerson
	 *            Set the examinePerson.
	 */
	public void setExaminePerson(String examinePerson) {
		this.examinePerson = examinePerson;
	}

	/**
	 * ${field.getLabel()}
	 * 
	 * @return Returns the ExamineOrg.
	 */
	public String getExamineOrg() {
		return this.examineOrg;
	}

	/**
	 * @param examineOrg
	 *            Set the examineOrg.
	 */
	public void setExamineOrg(String examineOrg) {
		this.examineOrg = examineOrg;
	}

	/**
	 * ${field.getLabel()}
	 * 
	 * @return Returns the ExamineDate.
	 */
	public Date getExamineDate() {
		return this.examineDate;
	}

	/**
	 * @param examineDate
	 *            Set the examineDate.
	 */
	public void setExamineDate(Date examineDate) {
		this.examineDate = examineDate;
	}

	public String toString() {
		return ReflectionToStringBuilder.toString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}

	public String getExamineDateStr() {
		if (examineDate !=null) {
			examineDateStr = DateUtil.dateToString1(examineDate);
		}
		return examineDateStr;
	}

	public void setExamineDateStr(String examineDateStr) {
		this.examineDateStr = examineDateStr;
	}


}
